import axios from '@/libs/api.request'

export const getList = info => {
  return axios.request({
    url: 'product/normsTemplateList',
    data: info,
    method: 'post'
  })
}
export const detail = info => {
  // 新增 修改调取，获取分类
  return axios.request({
    url: 'product/supplyDetail',
    data: info,
    method: 'post'
  })
}

export const addNorms = info => {
  return axios.request({
    url: 'product/normsPropertyInsert',
    data: info,
    method: 'post'
  })
}

export const add = info => {
  return axios.request({
    url: 'product/insertEnterNormsTemplate',
    data: info,
    method: 'post'
  })
}
export const put = info => {
  return axios.request({
    url: 'product/updateNormTemplate',
    data: info,
    method: 'post'
  })
}
export const del = info => {
  return axios.request({
    url: 'product/normsDeleteEnter',
    data: info,
    method: 'post'
  })
}

export const getNormsClass = info => {
  // 获取顶级规格分类
  return axios.request({
    url: 'product/getNormsClass',
    data: info,
    method: 'post'
  })
}
export const getNormsValueTemplateList = info => {
  // 获取规格数据关系数据
  return axios.request({
    url: 'product/getNormsValueTemplateList',
    data: info,
    method: 'post'
  })
}
